<?php

namespace App\Http\Admin\Models;

use Illuminate\Database\Eloquent\Model;
use App\Api\Traits\Orm\PageTrait;

class SystemUser extends Model
{
    use PageTrait;

    protected $table = 'system_user';

    protected $hidden = ['password'];

    protected $guarded = [];

    protected $casts = [
        'is_active' => 'int'
    ];

    public function role(){
        return $this->hasOne('App\Http\ManagerApi\Models\SystemRole','id','role_id');
    }
}
